#ifndef AUXCLASSES_H
#define AUXCLASSES_H

#include <QTreeView>

class QMenu;
class QAction;

class FileGroup
{
public:
    FileGroup() { isNewGroup = true; memberIndex = new QList<int>; }

    bool isNewGroup;
    QList<int> *memberIndex;
};

class TreeView : public QTreeView
{
    Q_OBJECT

public:
    TreeView(QWidget *parent = 0);
    QAction *action_show;
    QAction *action_delete;

signals:
    void showData(const QModelIndex &index);
    void deleteFile(const QModelIndex &index);

protected slots:
    void showContextMenu(const QPoint &pos);
};

#endif // AUXCLASSES_H

